package com.jeff.tianti.cms.dao;

import com.jeff.tianti.cms.entity.Course;
import com.jeff.tianti.common.dao.CommonDao;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
/**
 * @author xujianfang
 * @desc ColumnInfoDao接口 
 * @date 2017-03-16
 */
public interface CourseDao extends CourseDaoCustom,CommonDao<Course,String>{
    @Query("from Course d where d.deleteFlag=0 ")
    Page<Course> findAllNoDel(Pageable pageable);

    @Query("from Course d where d.deleteFlag=0 and d.id= ?1")
    Course findById(String id);

}